<?php
namespace Home\Controller;
use Think\Controller;
class TestController extends Controller{
	//水印
	function index(){
		$imageOb=new \Think\Image();
		$re=$imageOb->open("./Public/Image/test.jpg")
			        ->water("./Public/Image/little.png",\Think\Image::IMAGE_WATER_NORTHEAST)
			        ->save("./Public/Nimage/w.jpg");
		var_dump($re);
	}
	//缩略图
	function thumb(){
		$imageOb=new \Think\Image();
		$re=$imageOb->open("./Public/Image/test.jpg")
					->thumb(100,100,\Think\Image::IMAGE_THUMB_FILLED)
					->save("./Public/Nimage/t.jpg");
		var_dump($re);
	}
}